package com.service.impl;

import com.bean.HwAttach;
import com.dao.HwAttachDao;
import com.dao.impl.HwAttachDaoImpl;
import com.service.HwAttachService;
import com.utils.Page;

public class HwAttachServiceImpl implements HwAttachService {
    HwAttachDao hwAttachDao=new HwAttachDaoImpl();
    @Override
    public Page<HwAttach> page(int pageNo, int pageSize, String content) {
        return null;
    }

    @Override
    public HwAttach selectBy(HwAttach record) {
        return hwAttachDao.selectBy(record);
    }

    @Override
    public int deleteById(Integer id) {
        int status = 0;
        if (hwAttachDao.deleteByPrimaryKey(id) == -1) {
            status = 1;
        }
        return status;
    }

    @Override
    public int updeteInfo(HwAttach record) {
        int status = 0;
        if (hwAttachDao.updateByPrimaryKey(record) == -1) {
            status = 1;
        }
        return status;
    }

    @Override
    public int insert(HwAttach record) {
        int status = 0;
        if (hwAttachDao.insert(record) == -1) {
            status = 1;
        }
        return status;
    }

}
